/**
 * 选择模块共用弹框
 * @param selectType  选择类型（单选、多选）
 * @param subjectIds  专业ID串
 * @param courseId  课程ID
 * @param type 类型，1课程选择模块查询
 */
function selectMould(selectType,subjectIds,courseId,type) {
    parent.layer.open({
        type:2,
        area: winArea,
        btn: ['选择', '取消'],
        content: baseloaction + "/admin/course/mould/selectFindMouldList?selectType="+selectType+"&subjectIds="+subjectIds+"&courseId="+courseId+"&type="+type,
        maxmin: true,
        shade: [0.3, '#000'],
        shadeClose: false,
        title: '新建模块',
        type: 2,
        yes: function (index,layero) {
            var _iframe = layero.find("iframe:visible");
            var iframeName = _iframe[0].name;
            var mould = parent.frames[iframeName].getSelectMould();
            if(mould){
                var currentIframeName = contentMainIframeName();
                parent.frames[currentIframeName].selectMouldCallback(mould);
                parent.layer.close(index);
            }
        }
    });

}